/* 
 * GrayRabbit Cms基于J2EE架构内容管理系统
 * Copyright © GrayRabbit Co., Ltd. All rights reserved.
 * Department：运营部
 * 更多信息，请visit:
 * http://code.google.com/p/gray-rabbit-cms/
 */
package org.grayrabbit.cms.dao.search; 

import java.util.List;

import org.grayrabbit.cms.entity.HotKeyword;
import org.grayrabbit.cms.vo.search.HotKeywordBean;

import org.grayrabbit.dao.GenericDao;
import org.grayrabbit.dao.util.Page;
import org.grayrabbit.dao.util.QueryCondition;

/**
 * <b>HotKeyword</b>的DAO接口

 * @version 1.0,创建时间:2011-05-16 14:51:27 
 */
public interface HotKeywordDao extends GenericDao<HotKeyword, String>{
	
	/**
	 * 根据bean组装查询条件
	 */
	public QueryCondition assembly(HotKeywordBean bean);
	/**
	 * 根据bean组装统计查询条件
	 */
	public QueryCondition assemblyCount(HotKeywordBean bean);
	public int count(HotKeywordBean bean);
	/**
	 * 根据bean组装查询条件(名称参数)
	 */
	public QueryCondition assermblyNameQuery(HotKeywordBean bean);
	
	/**
	 * 根据bean组装统计查询条件(名称参数)
	 */
	public QueryCondition assemblyNameQueryCount(HotKeywordBean bean);
	/**
	 * 填充分页组件
	 * @param page
	 * @param bean
	 */
	public List<HotKeyword> findByPage(Page<HotKeyword> page, HotKeywordBean bean);
	/**
	 * 检查关键字唯一性
	 */
	public Boolean checkUnique(String hotKeywordName, String hotKeywordId);
	/**
	 * 检查文件前缀唯一性
	 */
	public Boolean checkFilenameUnique(String frontFilename, String hotKeywordId);
	
	/**关键词  查找热门关键词*/
	public HotKeyword findByKeyWord(String key);

}